<?php

/**
 * links form.
 *
 * @package    nutrition
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class linksForm extends BaselinksForm
{
  public function configure()
  {
      $this->removeFields();
      $this->validatorSchema['url'] = new sfValidatorUrl(
              array('required'=>true),
              array('invalid'=>'请输入正确格式的地址', 'required'=>'不能为空')
              );
      $this->validatorSchema['logo'] = new sfValidatorUrl(
              array('required'=>true),
              array('invalid'=>'请输入正确格式的地址', 'required'=>'不能为空')
              );
  }
  private function removeFields()
  {      
      unset($this['created_at'], $this['updated_at']);
  }
}
